﻿<%@ Page Language="C#" MasterPageFile="~masterurl/custom.master" AutoEventWireup="true" Inherits="Kiiro.SiteDefinition.Core.AllCustomItems, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816" %>

<%@ Register TagPrefix="SP" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="WPP" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="v2" TagName="Pager" Src="~/_controltemplates/Kiiro/Pager.ascx" %>
<%@ Register TagPrefix="v2" TagName="WelcomeMessagePanel" Src="~/_controltemplates/Kiiro/WelcomeMessagePanel.ascx" %>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <asp:Literal ID="litTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="panel-pad">
          <asp:Panel ID="pnlPanel" runat="server" CssClass="panel">
            <div class="panel-wrap">
              <div id="generic-panel-title">
                <asp:Table ID="genericTable" runat="server" CssClass="table-generic-items" Width="100%">
                </asp:Table>
              </div>
              <div id="generic-table">
                <table class="table-generic-items" width="100%">
                  <asp:Repeater ID="rptCustomItems" runat="server" OnItemDataBound="CustomItems_ItemDataBound">
                    <ItemTemplate>
                      <asp:TableRow ID="trCustom" runat="server">
                        <asp:TableCell runat="server" ID="Title" CssClass="itemsTitle">
                          <h2>
                            <asp:HyperLink ID="hypDisplayItem" runat="server" /></h2>
                        </asp:TableCell>
                        <asp:TableCell runat="server" ID="Actions" CssClass="actions">
                          <asp:HyperLink ID="hypEditItem" runat="server" Text="Edit" Visible="true" /><br />
                          <asp:LinkButton ID="btnDeleteItem" runat="server" Text="Delete" Visible="true" OnClick="btnDeleteItem_Click" />
                        </asp:TableCell>
                      </asp:TableRow>
                    </ItemTemplate>
                  </asp:Repeater>
                </table>
              </div>
            </div>
          </asp:Panel>
          <v2:Pager id="v2Pager" runat="server" />
          <v2:WelcomeMessagePanel id="v2WelcomeMessagePanel" runat="server" visible="false"  />
          <asp:Literal ID="litItems" runat="server" />
          <SP:SPDataSource ID="dataSource" DataSourceMode="List" EnableViewState="true" runat="server" />
        </div>
        <div class="panel-pad" style="display: none">
          <div class="panel">
            <WPP:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main" />
          </div>
        </div>
      </div>
    </div>
  </div>
</asp:Content>
